<% var pageLevelJS = { %>
<%include("/WEB-INF/views/btl/template/include/select2.html"){}%>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"sys"
		 ,modelName:"邮箱服务器地址"
		 ,modelFlag:"emailboxAddress"
		 ,key:"${sessionId}" 
		}
</script> 
<script type="text/javascript" src="${ctx}/static/js/sys/emailboxAddress/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
	  <input type="hidden" name="id" value="${data.id}">
      <div class="form-group  col-md-5">
	       <label for="name" class="required-before col-sm-4 control-label no-padding-right">名称:</label>
	       <div class="col-sm-8 inline-height ">
				  <input type="text" oldval="${data.name}" value="${data.name}" class="validate[required,maxSize[50]] col-xs-10" name="name" placeholder="名称" />
	 	    </div> 
	   </div>
      <div class="form-group  col-md-5">
	       <label for="serverCode" class="required-before col-sm-4 control-label no-padding-right">服务标识:</label>
	       <div class="col-sm-8 inline-height ">
				  <input type="text" oldval="${data.serverCode}" value="${data.serverCode}" class="validate[required,maxSize[50]] col-xs-10" name="serverCode" placeholder="服务标识" />
	 	    </div> 
	   </div>
      <div class="form-group  col-md-5">
	       <label for="sendServerAddress" class="required-before col-sm-4 control-label no-padding-right">发送服务地址:</label>
	       <div class="col-sm-8 inline-height ">
				  <input type="text" oldval="${data.sendServerAddress}" value="${data.sendServerAddress}" class="validate[required,maxSize[50]] col-xs-10" name="sendServerAddress" placeholder="发送服务地址" />
	 	    </div> 
	   </div>
      <div class="form-group  col-md-5">
	       <label for="sendServerPort" class="required-before col-sm-4 control-label no-padding-right">发送服务端口:</label>
	       <div class="col-sm-8 inline-height ">
				  <input type="text" oldval="${data.sendServerPort}" value="${data.sendServerPort}" class="validate[required,maxSize[50]] col-xs-10" name="sendServerPort" placeholder="发送服务端口" />
	 	    </div> 
	   </div>
      <div class="form-group  col-md-5">
	       <label for="sendServerSsl" class="required-before col-sm-4 control-label no-padding-right">是否加密发送:</label>
	       <div class="col-sm-8 inline-height ">
	       <label>
				<input name="sendServerSsl" oldval="${data.sendServerSsl}" value="${data.sendServerSsl}" class="ace ace-switch ace-switch-4 btn-rotate" type="checkbox">
				<span class="lbl">
					<span style="margin-left:5px;margin-right:5px;margin-top:1px" class="label label-success"></span>
				</span>
			</label>
	 	    </div> 
	   </div>
      <div class="form-group  col-md-5">
	       <label for="sendServerCode" class="required-before col-sm-4 control-label no-padding-right">发送服务类别:</label>
	       <div class="col-sm-8 inline-height ">
				  <input type="text" oldval="${data.sendServerCode}" value="${data.sendServerCode}" class="validate[required,maxSize[50]] col-xs-10" name="sendServerCode" placeholder="发送服务类别" />
	 	    </div> 
	   </div>
      <div class="form-group  col-md-5">
	       <label for="receiveServerAddress" class="required-before col-sm-4 control-label no-padding-right">接收服务地址:</label>
	       <div class="col-sm-8 inline-height ">
				  <input type="text" oldval="${data.receiveServerAddress}" value="${data.receiveServerAddress}" class="validate[required,maxSize[50]] col-xs-10" name="receiveServerAddress" placeholder="接收服务地址" />
	 	    </div> 
	   </div>
      <div class="form-group  col-md-5">
	       <label for="receiveServerPort" class="required-before col-sm-4 control-label no-padding-right">接收服务端口:</label>
	       <div class="col-sm-8 inline-height ">
				  <input type="text" oldval="${data.receiveServerPort}" value="${data.receiveServerPort}" class="validate[required,maxSize[50]] col-xs-10" name="receiveServerPort" placeholder="接收服务端口" />
	 	    </div> 
	   </div>
      <div class="form-group  col-md-5">
	       <label for="receiveServerSsl" class="required-before col-sm-4 control-label no-padding-right">是否加密接收:</label>
	       <div class="col-sm-8 inline-height ">
			<label>
				<input name="receiveServerSsl" checked="" oldval="${data.receiveServerSsl}" value="${data.receiveServerSsl}" class="ace ace-switch ace-switch-4 btn-rotate" type="checkbox">
				<span class="lbl">
					<span style="margin-left:5px;margin-right:5px;margin-top:1px" class="label label-success"></span>
				</span>
			</label>
	 	    </div> 
	   </div>
      <div class="form-group  col-md-5">
	       <label for="receiveServerCode" class="required-before col-sm-4 control-label no-padding-right">接收服务类别:</label>
	       <div class="col-sm-8 inline-height ">
				  <input type="text" oldval="${data.receiveServerCode}" value="${data.receiveServerCode}" class="validate[required,maxSize[50]] col-xs-10" name="receiveServerCode" placeholder="接收服务类别" />
	 	    </div> 
	   </div>
	  <div class="form-group col-md-5">
	     <label for="remark" class="col-sm-4 control-label no-padding-right">备注:</label>
	     <div class="col-sm-8 inline-height">
		    <input type="text"  oldval="${data.remark}" value="${data.remark}" class="validate[maxSize[50]] col-xs-10" name="remark" placeholder="备注">
		  </div>
	  </div>	 	 
<%} %>
